<?php

function unsCalendar_getAllLectureType() {

    global $babDB;


    $res = $babDB->db_query("select id, lectureType_name as name, lectureType_acronym as acronym from " . UNSCALENDAR_LECTURES_TYPE_TABLE_NAME);

    $lectureTypes = array();
    $i = 0;
    while ($arr = $babDB->db_fetch_array($res)) {
        $lectureTypes[$i] = $arr;
        $i++;
    }
    return $lectureTypes;
}


function unsCalendar_getLectureType($id) {
    global $babDB;


    $res = $babDB->db_query("select id, lectureType_name as name, lectureType_acronym as acronym from " . UNSCALENDAR_LECTURES_TYPE_TABLE_NAME." where id=".$id);

    return $babDB->db_fetch_array($res);
}

?>
